package jou.cs.service;

import jou.cs.entity.TPlace;
import org.springframework.data.domain.Page;

import java.util.Map;

public interface PlaceService {
    // add
    public void addPlace(TPlace place);
    // delete by id
    public void deletePlace(Long id);
    // update
    public void updatePlace(TPlace place);
    // get place by id
    public Map<Object, Object> getPlaceById(Long id);
    // page
    public Page<TPlace> getPlaceByPage(int page);

    // add type
    public void addType(Long pid, Long tid);
}
